package com.tlgen.config;

import java.util.HashMap;
import java.util.Map;

/*
 *@title StoreSingleton
 *@description
 *@author ta151486
 *@version 1.0
 *@create 2023/12/11 19:08
 */
public class LocalStore {

    private LocalStore() {
    }

    private Map<String, Object> map = new HashMap<>();

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    private static class SingletonHolder {
        private static final LocalStore INSTANCE = new LocalStore();
    }

    public static LocalStore getInstance() {
        return SingletonHolder.INSTANCE;
    }

}
